<?php

namespace App\Traits;

use Dcat\Admin\Layout\Content;

trait ControllerHasTab
{
    public function index(Content $content): Content
    {
        return $content->header($this->title)
            ->description($this->description()['index'] ?? trans('admin.list'))
            ->body($this->tab());
    }
}